package cn.enjoy.design.structure.proxy.controller;

import cn.enjoy.design.structure.proxy.entity.FlowForm;
import cn.enjoy.design.structure.proxy.service.FlowService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author K
 * @date 2021-07-18 18:15
 */
@RestController
@RequestMapping("/flow")
@AllArgsConstructor
public class FlowFormController {

    private FlowService flowService;


    @PostMapping("/submit")
    public FlowForm submit(@RequestBody FlowForm flowForm) {
        return flowService.submit(flowForm);
    }

}
